/*
 * Copyright 2010 Mark Eschbach.
 *
 * $HeadURL$
 * $Id$
 */
package com.meschbach.cise.resource.jar;

import com.meschbach.cise.resource.Sink;
import java.io.IOException;
import java.util.jar.JarOutputStream;

/**
 *
 * @author "Mark Eschbach" &lt;meschbach@gmail.com&gt;
 */
public class JarSink implements Sink<JarOutputStream> {

    Sink upstream;

    public JarSink(Sink upstream) {
        this.upstream = upstream;
    }

    public JarOutputStream getSink() throws IOException {
        return new JarOutputStream(upstream.getSink());
    }
}
